

import yaml
def getdata(filepath):
    with open(filepath,'r',encoding='utf-8') as f:
        return yaml.safe_load(f)

import yagmail
def send_mail(filepath):
    mail = yagmail.SMTP(user="3379600032@qq.com",password="",host="")
    mail.send(to='',subject="标题",contents="",attachments=filepath)